package com.jr.service.impl;


import com.jr.entity.User;
import com.jr.mapper.UserDao;
import com.jr.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @Author: 季成索
 * @Date:傻逼Git，搞得老子巨难受，beyond，凸(艹皿艹 )！
 * @email: 2301861732@qq.com
 **/
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserDao userDao;

    @Override
    public int addUser(User user) {
        int i = userDao.insertUser(user);
        return i;
    }

    @Override
    public User getuser(User user) {
        return userDao.selectUser(user);
    }

    @Override
    public int modify(User user) {
        return userDao.updateUser(user);
    }
}